const fs = require('fs'); 
const dir = './echarts/data'; 

fs.readdir(dir, (err, files) => { 
    console.log('已备份：' + files.length); 
}); 